#ifndef WINDOWNUM1_H
#define WINDOWNUM1_H

#include <QWidget>

/*数据库连接 -> #include <QSqlDatabase>*/
#include <QSqlDatabase>

/*表示数据库中错误的信息*/
#include <QSqlError>
/*弹出对话框*/
#include <QIcon>
#include <QPixmap>
#include <QMessageBox>
#include <QString>
#include <QSqlQuery>
#include <QDebug>
#include <QSqlTableModel>
#include <QUrl>
#include <QDesktopServices>

namespace Ui {
class WindowNum1;
}

class WindowNum1 : public QWidget
{
    Q_OBJECT

public:
    explicit WindowNum1(QWidget *parent = nullptr);
    ~WindowNum1();

private slots:
    void on_TypeinButton_clicked();

    void on_SearchButton_clicked();

    void on_DeleteByPetID_clicked();

    void on_DeleteByPetName_clicked();

    void on_DeleteByPetCategory_clicked();

    void on_DeleteByPetSex_clicked();

    void on_DeleteByPetBirthday_clicked();

    void on_DeleteByOwnerID_clicked();

    void on_FindByPetID_clicked();

    void on_FindByPetName_clicked();

    void on_FindByPetCategory_clicked();

    void on_FindByPetSex_clicked();

    void on_FindByPetBirthday_clicked();

    void on_FindByOwnerID_clicked();

    void on_ChangeByPetID_clicked();

    void on_ChangeByPetName_clicked();

    void on_ChangeByPetCategory_clicked();

    void on_ChangeByPetSex_clicked();

    void on_ChangeByPetBirthday_clicked();

    void on_ChangeByOwnerID_clicked();

    void on_HeadportraitPicture_clicked();

    void on_MedicineButton_clicked();

    void on_VaccineButton_clicked();

private:
    Ui::WindowNum1 *ui;

    QSqlDatabase mydatabase;

    QSqlTableModel *Model;
};

#endif // WINDOWNUM1_H
